package com.chinasoft.controller;

import com.chinasoft.pojo.Role;
import com.chinasoft.service.RoleServiceImpl;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;


import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

@Controller
@RequestMapping("/role")
public class RoleController extends HttpServlet {
    private static final Logger log = Logger.getLogger(UserController.class);

/*    @RequestMapping("/rolelist")
    public void doPost(HttpServletRequest request, HttpServletResponse response) {
        log.info("角色查询。。。。。。。。。。。");
        RoleServiceImpl roleService = new RoleServiceImpl();
        try{
            List<Role> roleList = roleService.getRoleList();
            request.setAttribute("list",roleList);
            request.getRequestDispatcher("rolelist.jsp").forward(request,response);
        }catch (Exception e){
            e.printStackTrace();
        }

    }*/
}
